package org.mdrtwell.reflection;

import java.lang.reflect.Array;

public class ArrayTester2 {
	public static void main(String[] args) {
		Object array = Array.newInstance(int.class, new int[] { 5, 10, 15 });
		Object array1 = Array.get(array, 3);
		System.out.println(array1);
		Object array2 = Array.get(array1, 5);
		Array.setInt(array2, 7, 23);
		int[][][] arrayObj = (int[][][]) array;
		System.out.println(arrayObj[3][5][7]);
	}
}
